Recording of fetal and maternal heart rate